package org.jeecg.modules.monitoring.j_monitoring.mapper;
import java.util.Collection;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.monitoring.j_monitoring.entity.RealStorageItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 实际存储Item
 * @Author: xiaoyq
 * @Date:   2023-11-22
 * @Version: V1.0
 */
public interface RealStorageItemMapper extends BaseMapper<RealStorageItem> {
    /**
     * 批量插入实际存储Item
     * @param realStorageItemCollection
     * @return
     */
    int insertBatch(@Param("realStorageItemCollection") Collection<RealStorageItem> realStorageItemCollection);

    /**
     * 根据FDN删除实际存储Item数据
     * @param fdn
     * @return
     */
    int deleteByFdn(@Param("fdn") String fdn);

    /**
     * 根据Ip删除实际存储Item
     * @param ip
     * @return
     */
    int deleteByIp(@Param("ip") String ip);

    /**
     * 根据fdn查询实际存储Item
     * @param fdn
     * @return
     */
    List<RealStorageItem> selectByFdn(@Param("fdn") String fdn);
}
